/* 注册页面专用样式 */

/* 注册容器样式 */
.register-container {
    width: 100%;
    height: calc(100% - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.register-container.visible {
    opacity: 1;
}

.register-dialog {
    background: white;
    width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.register-dialog h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.register-dialog h1 i {
    color: #7eb4b8;
    margin-right: 10px;
}

.row {
    margin-bottom: 20px;
    position: relative;
}

.row label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.row label i {
    color: #7eb4b8;
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.row input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
}

.row input:focus {
    border-color: #7eb4b8;
    box-shadow: 0 0 0 2px rgba(126, 180, 184, 0.2);
}

.hint {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

.hint i {
    margin-right: 5px;
    color: #7eb4b8;
}

.error-message {
    color: #ff3860;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message i {
    margin-right: 5px;
}

#submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #7eb4b8, #99dbd0);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(126, 180, 184, 0.4);
}

#submit:active {
    transform: translateY(0);
}

#submit i {
    margin-right: 8px;
}

#submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #7eb4b8;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link i {
    margin-right: 5px;
}

/* 错误输入框样式 */
input.error {
    border-color: #F44336 !important;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2) !important;
}

/* 自定义消息样式 */
.custom-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-message.show {
    opacity: 1;
    transform: translateX(0);
}

.custom-message.success-message {
    background-color: #4CAF50;
}

.custom-message.error-message {
    background-color: #F44336;
}

/* 加载动画样式 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #99dbd0 10%, #cbeaf2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 导航栏品牌图标样式 */
.nav-brand svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}
/* 添加对下拉选择框的样式支持 */
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
    background-color: white;
    cursor: pointer;
}

select:focus {
    border-color: #7eb4b8;
    box-shadow: 0 0 0 2px rgba(126, 180, 184, 0.2);
}

select.error {
    border-color: #ff3860;
}

/* 确保所有表单元素的一致性 */
input, select {
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 下拉选项样式 */
option {
    padding: 8px;
}